package top.xiaoshuaila.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.xiaoshuaila.pojo.User;
@Api(tags = "登录接口类")
@RestController
public class testcontroller {
    @GetMapping("hello")
    public String test(boolean isok){
        if (isok)
        return "true";
        else return "false";
    }
    @PostMapping
    @ApiOperation(notes = "Asf",value = "Asfada")
    public User user(){
        return new User();
    }
}
